import request from '@/utils/request'

// 获取用户积分
export function getUserPoint () {
  return request({
    url: '/getUserPointInfo',
    method: 'get'
  })
}

export function getUserPointDetail (queryDetailsParams) {
  return request({
    url: '/getUserPointDetail',
    method: 'get',
    params: queryDetailsParams
  })
}

export function getUserExchangeLog (getUserExchangeParams) {
  return request({
    url: '/getUserExchangeLog',
    method: 'get',
    params: getUserExchangeParams
  })
}

export function getGoodsInfo () {
  return request({
    url: '/getGoodsInfo',
    method: 'get'
  })
}

export function exchange (id) {
  return request({
    url: '/exchange',
    method: 'get',
    params: {
      id: id
    }
  })
}
